package animation;

import java.awt.image.BufferedImage;

public class Frame {
	private BufferedImage frameSprite;
	private int frameDuration;
	
	public Frame(BufferedImage frame, int duration){
		frameSprite = frame;
		frameDuration = duration;
	}
	
	public BufferedImage getFrame(){
		return frameSprite;
	}
	
	public int getDuration(){
		return frameDuration;
	}
	
	public void setFrame(BufferedImage input){
		frameSprite = input;
	}
	
	public void setDuration(int time){
		frameDuration = time;
	}

}
